package com.dianning.service.imp;

import java.io.IOException;
import java.io.InputStream;
import java.util.*;

import org.apache.commons.logging.*;

import com.dianning.bean.AdSpace;
import com.dianning.bean.Company;
import com.dianning.bean.Visitor;
import com.dianning.dao.AdAdsDAO;
import com.dianning.dao.AdSpaceDAO;
import com.dianning.dao.CompanyDAO;
import com.dianning.dao.VisitorDAO;
import com.dianning.exception.DianningException;
import com.dianning.service.AdService;
import com.dianning.service.CompanyService;
import com.dianning.service.VisitorService;

public class CompanyServiceImp implements CompanyService {

	private static final Log logger = LogFactory.getLog(CompanyServiceImp.class);
	
	private CompanyDAO companyDAO;
	
	public CompanyDAO getCompanyDAO() {
		return companyDAO;
	}
	public void setCompanyDAO(CompanyDAO companyDAO) {
		this.companyDAO = companyDAO;
	}
	/**
	 * 根据主键ID获取Company对象
	 * 
	 * @param uid
	 * 			主键ID
	 * @return Company
	 * 			Company对象
	 */
	public Company findCompanyByUid(long uid){
		return this.getCompanyDAO().findCompanyByUid(uid);
	}
	/**
	 * 保存Company对象
	 * 
	 * @param company
	 * 			Company对象
	 * @return Company
	 * 			Company对象
	 */
	public Company updateCompany(Company company){
		return this.getCompanyDAO().updateCompany(company);
	}

}
